package com.nebula.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.nebula.pojo.FriendsShare;

public interface FriendsShareMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FriendsShare record);

    int insertSelective(FriendsShare record);

    FriendsShare selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FriendsShare record);

    int updateByPrimaryKey(FriendsShare record);
    
    int selectCount(@Param("distributors") String distributors,@Param("receiver") String receiver);
    
    List<FriendsShare> selectFileIdGroup(@Param("distributors") String distributors,@Param("receiver") String receiver);
    
    int updateIsView(@Param("id") Integer id ,@Param("receiver") String receiver);
    
    int plDelete(@Param("map") Map<String,List<Integer>> map);
    
    int plInsert(@Param("map") Map<String,String> map , @Param("distributors") String distributors);
}